

#获取bat文件执行路径
set "batPath=%~dp0"
set "batPath=%batPath:~0,-1%"
#输出当前路径
echo %batPath%
